#include <stdio.h>

int main()
{
	int h1, m1;
	int h2, m2;
	
	printf("Please enter first time in XX XX ");
	scanf("%d %d", &h1, &m1);
	
	printf("Please enter second time in XX XX ");
	scanf("%d %d", &h2, &m2);
	
	int final1 = h1 * 60 + m1;
	int final2 = h2 * 60 + m2;
	
	printf("Time Gap is %d %d", (final2-final1)/60, (final2-final1)%60);
}
